package com.j1ay.forum.model.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author J1ay
 * @Date 2021/12/18 15:41
 * @Description 返回分页的结果
 */

@Data
@ApiModel("返回分页的结果")
public class PageResult<T> {

    @ApiModelProperty("当前页")
    private Long currentPage;
    @ApiModelProperty("页大小")
    private Long pageSize;
    @ApiModelProperty("数据列表")
    private List<T> list;
    @ApiModelProperty("总条数")
    private long totals;
}
